package com.module.imagelib.picture;

import android.app.Activity;

import java.util.List;

public class PictureResult {
    private final int code;
    private final List<String> paths;

    public PictureResult(int code, List<String> paths) {
        this.code = code;
        this.paths = paths;
    }

    public int getCode() {
        return code;
    }

    public List<String> getPaths() {
        return paths;
    }

    public boolean isOk() {
        return code == Activity.RESULT_OK;
    }

    public boolean isCancel() {
        return code == Activity.RESULT_CANCELED;
    }


    @Override
    public String toString() {
        return "ActivityResult{" +
                "code=" + code +
                ", paths=" + paths +
                '}';
    }
}
